home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
WINPROGS
/
DSTRB3.ZIP
/
SETUP.BAT
< prev
Wrap
DOS Batch File
|
1994-01-18
|
4KB
|
137 lines
@ECHO OFF
CLS
IF "%1" == "" GOTO NOPATH
IF "%2" == "" GOTO NOPATH
IF "%3" == "" GOTO NOPATH
:OK
CLS
ECHO.
ECHO Welcome to the beta3 release of DSTReader, a QWK mail packet reader for
ECHO windows, you will notice that the install 'program' is simply a DOS batch
ECHO file, this is because, I haven't written the windows install program yet
ECHO ( in fact the mail reader is not yet done either! ) so you'll just have to
ECHO live throught the batch file untill the release version comes out.
ECHO.
ECHO This batch file will unzip the apropriate files to the approriate
ECHO directories, then allow you to run DSTReader. It will not make an icon
ECHO for you. If you don't know how to make an icon in Program Manager, you
ECHO shouldn't be using this beta copy of the reader!
ECHO.
ECHO There are several files that will be copied to you windows directory,
ECHO including two called PKUNZIP.PIF and PKZIP.PIF, these files are used to
ECHO control how DSTReader extracts and archives the messages. If you allready
ECHO have files named this in you windows directory, you should abort now and
ECHO copy them to a safe place, where you can compare the ones in this archive
ECHO to the ones you backed up.
ECHO.
ECHO For further information please read the readme.wri file in the
ECHO directory you have installed DSTReader.
ECHO.
PAUSE
IF "%3" == "62" GOTO DOS62
IF NOT EXIST %1\NUL MD %1
PKUNZIP FILES.ZIP > NUL
COPY BWCC.DLL %2\SYSTEM > NUL
COPY VLISTBOX.DLL %2\SYSTEM > NUL
COPY DSTWAV.EXE %1 > NUL
COPY DSTREAD.EXE %1 > NUL
COPY DSTREAD.INI %2 > NUL
COPY README.WRI %1 > NUL
COPY DSTREAD.WRI %1 > NUL
COPY ARJ.PIF %2 > NUL
COPY LHA.PIF %2 > NUL
COPY PKXARC.PIF %2 > NUL
COPY PKARC.PIF %2 > NUL
COPY PKUNZIP.PIF %2 > NUL
COPY PKZIP.PIF %2 > NUL
GOTO THEREST
:DOS62
IF NOT EXIST %1 MD %1
PKUNZIP FILES.ZIP > NUL
COPY BWCC.DLL %2\SYSTEM /Y > NUL
COPY VLISTBOX.DLL %2\SYSTEM /Y > NUL
COPY DSTWAV.EXE %1 /Y > NUL
COPY DSTREAD.EXE %1 /Y > NUL
COPY DSTREAD.INI %2 /Y > NUL
COPY README.WRI %1 /Y > NUL
COPY DSTREAD.WRI %1 /Y > NUL
COPY ARJ.PIF %2 /Y > NUL
COPY LHA.PIF %2 /Y > NUL
COPY PKXARC.PIF %2 /Y > NUL
COPY PKARC.PIF %2 /Y > NUL
COPY PKUNZIP.PIF %2 /Y > NUL
COPY PKZIP.PIF %2 /Y > NUL
GOTO THEREST
:THEREST
DEL BWCC.DLL > NUL
DEL VLISTBOX.DLL > NUL
DEL DSTREAD.EXE > NUL
DEL DSTREAD.INI > NUL
DEL README.WRI > NUL
DEL DSTREAD.WRI > NUL
DEL ARJ.PIF > NUL
DEL LHA.PIF > NUL
DEL PKXARC.PIF > NUL
DEL PKARC.PIF > NUL
DEL PKUNZIP.PIF > NUL
DEL PKZIP.PIF > NUL
DEL DSTWAV.EXE > NUL
IF NOT EXIST %2\SYSTEM\BWCC.DLL GOTO ERROR
IF NOT EXIST %2\SYSTEM\VLISTBOX.DLL GOTO ERROR
IF NOT EXIST %1\DSTREAD.EXE GOTO ERROR
IF NOT EXIST %2\DSTREAD.INI GOTO ERROR
IF NOT EXIST %1\README.WRI GOTO ERROR
IF NOT EXIST %1\DSTREAD.WRI GOTO ERROR
IF NOT EXIST %2\ARJ.PIF GOTO ERROR
IF NOT EXIST %2\LHA.PIF GOTO ERROR
IF NOT EXIST %2\PKXARC.PIF GOTO ERROR
IF NOT EXIST %2\PKARC.PIF GOTO ERROR
IF NOT EXIST %2\PKUNZIP.PIF GOTO ERROR
IF NOT EXIST %2\PKZIP.PIF GOTO ERROR
IF NOT EXIST %1\DSTWAV.EXE GOTO ERROR
GOTO MESSAGE
:NOPATH
ECHO.
ECHO.
ECHO You need to specify a path on the command line of this batch program,
ECHO as well as the path to your windows directory, and a extra parameter to
ECHO tell me which version of DOS you are running, if you are running 6.2, add
ECHO a 62 to the end of the setup statement. If you are running anything else
ECHO add a 60 to the end of the setup statement.
ECHO.
ECHO Please try again with something like this...
ECHO.
ECHO SETUP C:\WINAPPS\DSTREAD C:\WINDOWS 62
ECHO.
ECHO *Note: There are no trailing backslashs.
ECHO.
GOTO END
:MESSAGE
CLS
ECHO.
ECHO Everything should be ok, you can now go to program manager and add an
ECHO icon to your favorite group for DSTReader. For more information on
ECHO DSTReader, read the file README.WRI or DSTREAD.WRI in the instalation
ECHO directory.
ECHO.
GOTO END
:ERROR
CLS
ECHO.
ECHO An error has occured, please unzip the archive FILES.ZIP manually and
ECHO read the file README.WRI for furthor instructions.
ECHO.
:END